import { addClickFn } from ".";
import withUpperCase from '../to_upper_case'
import withLogger from '../logger'
import Editor from '../../editor'
export default function otherButton(editor:Editor){
    const buttons = document.getElementsByTagName('button')
    addClickFn(buttons,(target:HTMLElement) =>{
        switch(target.id){
            /**打印日志 */
            case 'console-type':
            withLogger(editor,target)
            break;
            /**一键大写 */
            case 'upper-type':
            withUpperCase(editor,target)
            break;       
        }
    })
}
